GBML manual / 3D

view3d_door_open

How far the door at (x, y) is open: 0 closed to 1 open (0 where there is no door).

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_door_open(x, y) -> real

Arguments

NameType
xreal
yreal

Returns

real

Description

How far the door at (x, y) (room pixels counted from the room's top-left corner) is open: 0 closed to 1 open (0 where there is no door). It moves a little each frame after view3d_door asks, so ask it to know when the door is ready to walk through: about 0.75 and over.

Example

if (view3d_door_open(44, 28) >= 0.75) {
    view3d_move(1.5, 0);
}

The camera walks forward only once the door is open enough.

On the GBA

It moves a little each frame after view3d_door asks, so ask it to know when the door is ready to walk through (about 0.75 and over).

See also: Enemies and items in 3Dview3d_door